﻿using System.Windows.Controls;
using Microsoft.Phone.Controls;

namespace Samples.Radio.Pages.Settings
{
    public partial class Settings 
    {
        public Settings()
        {
            InitializeComponent();
        }


        private void StreamSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var track = (sender as ListPicker).SelectedItem as TrackViewModel;

            (DataContext as SettingsPageViewModel).CurrentStream = track;

        }
    }
}